# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=goxel
pkgver=0.10.7
pkgrel=0
pkgdesc="Open source 3D voxel editor"
url="https://goxel.xyz/"
arch="x86_64 x86" # only available on x86_64 and x86 due to compiling problems
license="GPL-3.0-only"
makedepends="scons glfw-dev gtk+3.0-dev"
options="!check" # check function not implemented
source="https://github.com/guillaumechereau/goxel/archive/v$pkgver/goxel-$pkgver.tar.gz
	goxel.desktop
	fix-musl.patch
	"

build() {
	scons mode=release
}

package() {
	install -Dm775 goxel "$pkgdir"/usr/bin/goxel

	install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/goxel.png
	install -Dm644 "$srcdir"/goxel.desktop "$pkgdir"/usr/share/applications/goxel.desktop
}
sha512sums="7d78b97c81c554ccea16d62ace4a53bbb8b09d794f1762dff09f55221d8c059557f684cbab61f2d6f6f08ec9754d8b188cc779073bb05a7ad4ef914cb2c2106b  goxel-0.10.7.tar.gz
99bd1c53c5db15412cd4d8a9454e9e6a0803209a4969bba052b95ba51b17ac43054c8c00d7cd89ab6b85f006a53b2b38d168dc290be3778966af79a67a5928ff  fix-musl.patch
10662d11d73a51d06db753b4f1727e05b1b9a5ef63ee4321cd4f445806f6162af010f89d7f98ff3ba25df14df1fb9bc8693a98d93206af208fdb28b7a49e46e9  goxel.desktop"
